package group2assignone.ucm;

import group2assignone.view.OurView;

/**
 * * -This is not a true use case... it is a mini use case to close a window<br>
 * Use Case: Close Window<br>
 * Pre-Condition: A relevant window is opened<br>
 * Post-Condition: window is closed<br>
 * 1. Systems closes the selected window<br>
 * @author group2
 */
public class UCCloseWindow implements UCController {

    OurView view;

    public UCCloseWindow(OurView view) {
        this.view = view;
    }

    public void run() {
        //1. Systems closes the selected window
        view.dispose();
    }
}
